/*
package com.isoft.service.tableservice;

import com.isoft.dao.tabledao.DfmeBoreDao;
import com.isoft.entity.tableentity.dfme_bore.DfmeBoreMsg;
import com.isoft.utils.TimeFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;

@Service
public class DfmeBoreService {
    @Autowired
    DfmeBoreDao dfmeBoreDao;
    public int insertMsg(DfmeBoreMsg dfmeBoreMsg) throws Exception{
        Timestamp create_time = TimeFormatUtils.GetNowTime();
        Timestamp ddtm = TimeFormatUtils.stringToTimestamp(dfmeBoreMsg.getDfmeBoreMeta().getDdtm());
        dfmeBoreDao.insertMeta(create_time,ddtm,dfmeBoreMsg.getDfmeBoreMeta());
        Timestamp bort = TimeFormatUtils.stringToTimestamp(dfmeBoreMsg.getDflt().getBort());
        Timestamp mbor = TimeFormatUtils.stringToTimestamp(dfmeBoreMsg.getDflt().getMbor());
        return dfmeBoreDao.insertDflt(dfmeBoreMsg.getDfmeBoreMeta().getSeqn(),create_time,dfmeBoreMsg.getDflt(),bort,mbor);
    }

}
*/
